<div class="app-cron-base-container">
    <div class="app-base-item">
        当前值：{{defaultValue}}
    </div>
    <div>
        <nz-radio-group [(ngModel)]="type" (ngModelChange)="change($event)">
            <label nz-radio [nzValue]="typeEvery" [nzDisabled]="disabled">
                <div class="app-base-item">
                    每年
                </div>
            </label>

            <label nz-radio [nzValue]="typeRange" [nzDisabled]="disabled">
                <div class="app-base-item">
                    区间
                    从
                    <nz-input-number class="app-base-input" [(ngModel)]="valueRange.start" [nzMin]="minValue"
                        [nzMax]="maxValue" (ngModelChange)="change($event)" [nzStep]="1" [nzPrecision]="0"
                        [nzSize]="inputSize" [nzDisabled]="type!=typeRange || disabled"></nz-input-number> 年
                    至
                    <nz-input-number class="app-base-input" [(ngModel)]="valueRange.end" [nzMin]="minValue"
                        [nzMax]="maxValue" [nzStep]="1" (ngModelChange)="change($event)" [nzPrecision]="0"
                        [nzSize]="inputSize" [nzDisabled]="type!=typeRange || disabled">
                    </nz-input-number> 年
                </div>
            </label>

            <label nz-radio [nzValue]="typeLoop" [nzDisabled]="disabled">
                <div class="app-base-item">
                    循环
                    从
                    <nz-input-number class="app-base-input" [(ngModel)]="valueLoop.start" [nzMin]="minValue"
                        [nzStep]="1" [nzSize]="inputSize" [nzPrecision]="0" (ngModelChange)="change($event)"
                        [nzDisabled]="type!=typeLoop || disabled">
                    </nz-input-number>
                    年开始，间隔
                    <nz-input-number class="app-base-input" [(ngModel)]="valueLoop.interval" [nzMin]="minValue"
                        [nzStep]="1" [nzSize]="inputSize" (ngModelChange)="change($event)" [nzPrecision]="0"
                        [nzDisabled]="type!=typeLoop || disabled">
                    </nz-input-number>
                    年
                </div>
            </label>
        </nz-radio-group>
    </div>
</div>